home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / hard / hack / my_pc_mouse.lha / MouseHack / HowToDoIt.txt < prev   
Encoding:
Text File  |  1998-07-15  |  6.9 KB  |  188 lines

  1.  
  2. PREFACE
  3. =======
  4.  
  5. The following text has been written in 1998 by Stephan Rupprecht
  6. and explains how to modify a serial mice to work on the Amiga.
  7.  
  8. IMPORTANT: If this modification causes any damage to your
  9. computer, mice or any other pet;), I am NOT responsible. And 
  10. don't forget: if you have a new mouse, you'll loose warranty!
  11.  
  12. Being sick of the "good" old C= mouse and having a serial mice
  13. "flying around", I decided to modify this mouse to work on
  14. my Amiga. So I took a look at several texts found on the Aminet
  15. which described the modification of such a mouse. Unfortunely
  16. this didn't work for my mouse as it is a bit different to those
  17. described.
  18.  
  19. WHAT YOU NEED FOR THE MODIFICATION
  20. ==================================
  21.  
  22. Some experiences in soldering and the tools to do it ;)
  23.  
  24. 1x LM339 Quad Voltage Comparator IC (= TDB0139 = LM239)
  25. 1x 150Ohm Resistor (1/4 or 1/10 Watt)
  26. 1x 5+1 10k Resistor Network (or 4+1 10k and a single 10k one)
  27. 1x 5+1 2.7k Resistor Network (or 4+1 2.7k and a single 2.7k one)
  28. and some 9pin cord with a female db9 plug.
  29.  
  30. COSTS: about US$ 5.-
  31.  
  32. NOTE: Please read the following text before you buy anything, you 
  33. might need different resistors!
  34.  
  35. HOW IT WORKS
  36. ============
  37.  
  38. First disassemble the mouse and disconnect the mouse cord.
  39. Second remove the 16pin integrated circuit and clean out
  40. the holes as we need them to solder in the new mouse cable.
  41. Now follow the trace that is connected to the negative terminal
  42. of the small electrolytic (C1) capacitor, the trace should end at 
  43. the cable socket (CN1). This is GND. Connect line 8 of your new
  44. mouse cord to it. Go back to C1 and follow the trace that is 
  45. connected to the positive lead of C1, it should also end at CN1.
  46. This VCC (+5V), connect line 7 of your mouse cord to it. 
  47. (Alternatively, you can use a voltmeter to find the correct lines,
  48. for this purpose your mouse must be connected to the serial port).
  49. After doing this, take a look at the switches for the mouse-buttons, 
  50. and check if they're connected to VCC or GND. In case that 
  51. they're connected to VCC, you've to disconnect them from VCC and
  52. connect them to GND. Now follow each trace that goes from a switch
  53. to one of the holes where we removed the IC before and solder in
  54. the appropiate line of your mouse cord to it: line 6 of the 
  55. mouse cord must be connected to left button, line 5 to the
  56. middle one and line 9 to the right one. As your mouse might 
  57. differ from my one (BTW: it's a Genius EasyMouse), you've to
  58. check the following: pin 1 and 3 of each ir-detector should be
  59. connected to GND via a resistor (normally named RP1). If not, 
  60. connect the input line of your 5+1 (or 4+1) 2.7k resistor (marked
  61. by a point) to GND and the output lines of the ir-detectors
  62. (pin 1+3) to the resistor (watch out for a group of five holes
  63. named RP1 - this is the right place for the resistor). Please note
  64. that we'll also connect these lines to the LM339 IC! If you're a 
  65. lucky one because the output lines are already connected to GND,
  66. just remove the old resistor (RP1) and replace it by the new 
  67. (2.7k) one (you'll probably need a 4+1 instead, but don't forget 
  68. to buy an additional 2.7k resistor then).
  69.  
  70.  +-----------+
  71.  |ir-detector|
  72.  1     2     3    +---------------+
  73.  +-----+-----+  |2.7k resistor °|
  74.  |     |     |  +--+--+--+--+---+
  75.  |     |     |  |  |  |  |  |   |
  76.  |     |     |  |  |  |  |  |   |
  77.  |     |     +--+  |  |  |  |   |
  78.  |     °        |  |           GND
  79.  |    VCC       |  |          
  80.  +-----------------+
  81.             |  |
  82.         |  |
  83.         to LM339
  84.  
  85. Next we've to connect the following lines to the LM339: Connect
  86. pin 1 of the vertical ir-detector to pin 5 of the LM339 and pin 3
  87. to pin 11 of the IC. Pin 1 of the horizontal ir-detector must
  88. be connected to pin 7 and pin 3 to pin 9 of the LM339 (simply
  89. solder a wire from the IC's holes [the holes that are connected
  90. to the detectors] to the LM339).
  91.  
  92. Now connect pin 3 to VCC and pin 12 to GND. Pin 4,6,8 and 10 
  93. must be connected to +1V: Connect one (free) line of the 5+1 2.7k
  94. resistor to one (free) line of the 5+1 10k resistor (which must
  95. be connected to +5V). This new line, just created, will give you
  96. the +1V needed for the comparator.
  97.  
  98.       °VCC °VCC
  99.       /       /
  100.       \10k \10k       +---------+--------+
  101.       /       /           |         |         |
  102.       |    |    - VQ-Pulse|HQ-Pulse |        |
  103.  Line3+ L.4+   ---   IN   |    IN   |        |
  104.    OUT| OUT|    |    |    |    |    |        |  VCC
  105.  +----|----|----|----|----|----|----|----+   |   °
  106.  |   14      13   12   11   10    9    8     |   |     /
  107.  |                     |   |   \ 10k
  108.  +-                      |   |     /
  109.  | |    LM 339                  |   +---+
  110.  +-                      |   |     \ 
  111.  |                     |   |     / 2.7k
  112.  |    1       2    3    4    5    6    7     |   |     \
  113.  +----|----|----|----|----|----|----|----+   |    ---
  114.       |    |    |    |    |    |    |        |   -
  115.  Line1+ L.2+    °    | V-Pulse | H-Pulse     |
  116.    OUT| OUT|   VCC   |   IN    |   IN        |
  117.       \       \         |         |         |
  118.       /10k /10k      +---------+-------------+
  119.       \       \                    
  120.       °VCC °VCC
  121.         
  122. Finally, pin 1,2,13 and 14 (LM339) must be connected to 
  123. VCC through the 5+1 10K resistor. When you've done this, 
  124. connect pin 1 to line 1 of the mouse cord, pin 2 to line 2,
  125. pin 14 to line 3 and pin 13 to line 4. That's all,
  126. almost;) Replace R1 (this should be the limiting
  127. resistor for ir-light emitters) through the new 150Ohm
  128. one. IMPORTANT: The leds of your mouse might differ, so
  129. better try a stronger one before using the 150Ohm one!
  130.  
  131. TROUBLE SHOOTING
  132. ================
  133.  
  134. The mouse buttons don't work:
  135. You've forgotten to disconnect them from VCC and connect
  136. them to GND. Check the lines!!!
  137.  
  138. The mousepointer is moving into the wrong direction:
  139. you've swapped the horizontal or vertical lines.
  140.  
  141. The mousepointer doesn't want to move:
  142. 1) Check for around 0.5V at pin 5,7,9,11 of the LM339.
  143. 2) Pin 4,6,8,10 of the IC should get +1V. Pin 3 is VCC and
  144.    must get +5V. 
  145. 3) The limiting resistor for the leds is too strong, use
  146.    a smaller one.
  147.  
  148. The mousepointer moves only up/down or left/right:
  149. The resistor for the leds is still too strong, try a smaller
  150. one.
  151.  
  152. FINAL NOTE
  153. ==========
  154.  
  155. Normally, the V and H pulses that are produced by the ir
  156. detectors should be around 0.5V. As this wasn't enough
  157. to work with my mouse (I used a 330Ohm resistor for R1), 
  158. I powered up the ir-leds by using an 150Ohm resistor. Now
  159. the ir-detectors output up to 2V for a movement, this works
  160. for me but it doesn't mean that works for you! You should 
  161. also try different resistor combinations, eg. use a 330Ohm 
  162. resistor for R1 and lower the voltage of the comparator 
  163. circuit from 1V to 0.3V (= used by the original C= mouse). 
  164. You could also try to powerup the ir-detectors, so that 
  165. they output upto 5V for a movement. This way you won't 
  166. need the LM339 and the 10k resisitor!
  167.  
  168. CREDITS
  169. =======
  170.  
  171. I would like to thank the following people
  172.  
  173. Gene Heskett (genes_pc_mouse.lha),
  174. J. Edward Hanway (optmouse12.lha),
  175. Jeff Easton (mousehack.txt)
  176.  
  177. for writing down their serial mouse hacks.
  178.  
  179. AUTHOR    
  180. ======
  181.  
  182. Stephan Rupprecht
  183. Apfeldweg 1
  184. 44359 Dortmund
  185. Germany
  186.  
  187. stephan.rupprecht@primus-online.de
  188.